package org.lanqiao.service;

import org.lanqiao.entity.Train;

import java.util.List;

public interface TrainService {
    //添加
    public boolean addTrain(Train train);
    //修改
    public boolean updTrain(Train train);
    //删除
    public boolean delTrain(Integer id);
    //根据id查询
    public Train findByIdTrain(Integer id);
    //查询所有
    public List<Train> findAllTrain();
    //判断id
    public  boolean isExistByIds(Integer id);
}
